<?php

class adresse_model extends Model
{
	function __construct()
	{
		parent::Model();
	}
	
	function read($adrID)
	{
		$this->db->select('*')->from('adresse')->where('adrID', $adrID);
		$query = $this->db->get();
		return $query->row_array();
	}
	
	function update($adrID, $data)
	{
		//echo '<pre>'; print_r($_POST); echo '</pre>';
		
		$result = $this->db->where('adrID', $adrID)->update('adresse', $_POST);
		//$this->set();
		return $result;
	}
}